package com.by.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
/*
* 属性信息
* */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("attr")
public class Attr {
    //属性id
    @TableId(value = "attr_id",type = IdType.AUTO)
    private Integer  attrId;
    //店铺id
    private int  shopId;
    //属性名称
    private String name;
    //属性描述
    @TableField("`desc`")
    private String desc;
    /*
    * 搜索参数 0:不需要,1:需要
    * */
    private int searchType;
    //属性类型 0:销售属性,1:基本属性
    private int attrType;
    //属性值 一对多
    @TableField(exist = false)
    List<AttrValue> attValueList;
}
